﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ProjectFitus.Models.UserAndSpecialistCapsule>"%>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjosagjof.is | <%=Model.usr.userName %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <% Html.RenderPartial("UserDetails", Model.usr);%>
   <%
       if (Model.speciali != null)
       {
           Html.RenderPartial("SpecialistDetails", Model.speciali);
       }
       else
       {%>
       <%= Html.ActionLink("Sækja um að verða sérfræðingur", "create", "specialist")%>
       <%}%>

    <p>
        <%= Html.ActionLink("Breyta", "Edit", new { id=Model.usr.id }) %> |
        <%= Html.ActionLink("Til baka á forsíðu", "Index","Home") %>
    </p>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="SideContent" runat="server">
</asp:Content>

